package com.dhcc.bpm.modules.auth.service;

import com.alibaba.fastjson.JSONObject;
import org.springblade.core.tool.support.Kv;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: cbus-bpm-boot
 * @ClassName AuthService
 * @author: xiafayu
 * @create: 2022-07-08 15:25:47
 * @Version 1.0.0
 **/
public interface AuthService {
    Kv getToken(JSONObject json);

    Kv getSsoToken(String role, String userName);

    Kv getRole(JSONObject json);

    Kv createToken(HttpServletRequest request);

    Kv getSsoRole(HttpServletRequest request);

    boolean logout(HttpServletRequest request);

    Kv createCaptcha();

    String getAuthCode();

    boolean verifyAuthCode(JSONObject json);

}
